package itheima.com.PrintStream;

import java.io.IOException;
import java.io.PrintStream;

public class PrintStream_ {

    public static void main(String[] args) throws IOException {

        PrintStream out = System.out;
        out.print("join , hello");

        out.write("hgahqaha你好".getBytes());

        out.close();

        System.setOut(new PrintStream("D:\\一条小团团\\f1.txt"));
        System.out.println("hello,你好666~");
    }

}
